package com.nciae.service;

import com.nciae.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
public interface IUserService extends IService<User> {

    User findUserById(Long id);

    User findUserByName(String username);

    User login(String username, String password);

    void add(User user);

    void update(User user);

    void delete(Long id);

    byte[] uploadAvator(Long userId, MultipartFile file);

    List<User> findUserByUsername(String username);
}
